/*  */
#include <stdbool.h>
#include "cstdlib.h"

#include "../interpreter.h"


static int trueValue = 1;
static int falseValue = 0;


/* structure definitions */
const char Cstdlib::kStdboolDefs[] = "typedef int bool;";

/* creates various system-dependent definitions */
void Cstdlib::StdboolSetupFunc(Interpreter *pc)
{
    /* defines */
    (pc, NULL, "true", &pc->intType,
    	(AnyValue*)&trueValue, false);
    (pc, NULL, "false", &pc->intType,
    	(AnyValue*)&falseValue, false);
    (pc, NULL, "__bool_true_false_are_defined",
    	&pc->intType, (AnyValue*)&trueValue, false);
}
